package com.pactera.madp.cp.api.em;

/**
 * @author zkd
 * @date 2022/5/16 16:03
 */
public enum RemindTaskCronExpressionEnum {

    PER_ONE_HOUR("1","0 0 * * * ? *"),

    PER_SIX_HOUR("2","0 0 0/6 * * ? *"),

    PER_ONE_DAY("3","0 30 10 * * ? *"),

    PER_ONE_WEEK("4","0 30 10 ? * MON *"),

    PER_TWO_WEEK("5","0 30 10 * * 2#2 *"),

    PER_ONE_MONTH("6","0 30 10 1 1/1 ? *");

    private String code;
    private String cronExpression;

    RemindTaskCronExpressionEnum(String code, String cronExpression) {
        this.code = code;
        this.cronExpression = cronExpression;
    }

    public String getCode() {
        return code;
    }

    public String getCronExpression() {
        return cronExpression;
    }
}
